#ifndef ENTITYPROPERTYGRID_H
#define ENTITYPROPERTYGRID_H

#include "EditorCore/IEntity.h"
#include "EditorCore/IEntityViewer.h"
#include <wx/propgrid/propgrid.h>

class PropertyGridEntityViewer : public editor_core::IEntityViewer
{
public:
	PropertyGridEntityViewer( wxPropertyGrid* propertyGrid );
	virtual ~PropertyGridEntityViewer();

	virtual editor_core::IEntity* GetEntity() const;
	virtual void SetEntity( editor_core::IEntity* entity );

	virtual void Update();

	void UnsetEntity();

private:
	wxPropertyGrid* m_propertyGrid;
	editor_core::IEntity* m_entity;
};

#endif
